package com.shqcjd.sinopecdemomobile.ui.adapter;

import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.sinopecdemomobile.R;
import com.shqcjd.sinopecdemomobile.model.pojo.ProblemFeedbackListBean;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by sy on 2019/5/14.
 */

public class ProblemUserAdapter extends BaseQuickAdapter<ProblemFeedbackListBean.ListBean.ExpertListBean,ProblemUserAdapter.ViewHolder> {

    public ProblemUserAdapter() {
        super(R.layout.item_problem_user);
    }

    @Override
    protected void convert(ProblemUserAdapter.ViewHolder helper, ProblemFeedbackListBean.ListBean.ExpertListBean item) {
        helper.tv_expert_name.setText(""+item.expertUserName);
        helper.tv_expert_time.setText(""+item.expertReplyTime);
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_expert_name)
        TextView tv_expert_name;
        @BindView(R.id.tv_expert_time)
        TextView tv_expert_time;
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }

}
